package com.doubao.pojo;

/**
 * Created by sult on 2017/10/11.
 */
public class ResponseBean {

    private String responseCode;

    private String message;

    private Object data;

    public ResponseBean() {
    }

    public ResponseBean(String message, String responseCode) {
         this.message =message;
         this.responseCode = responseCode;
     }


     public String getResponseCode() {
        return responseCode;
    }

    public ResponseBean setResponseCode(String responseCode) {

        this.responseCode = responseCode;
         return this;  
    }

    public String getMessage() {
        return message;
    }

    public ResponseBean setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getData() {
        return data;
    }

    public ResponseBean setData(Object data) {
        this.data = data;
        return this;
    }

    public ResponseBean setSucess() {
        this.message ="操作成功";
        this.setResponseCode("200");
        return this;
    }

    public ResponseBean setFail() {
        this.message = "系统异常";
        this.setResponseCode("500");
        return this;
    }






}
